/// deviceId : 20002
/// deviceName : "11111"
/// deviceSN : "1111111_1689316133443"
/// showName : "11111_MPPT输入总功率"
/// selectName : "20002_mpptPower"
/// paramName : "MPPT输入总功率"
/// paramCode : "mpptPower"
/// flag : null
/// type : null
/// subType : null
/// siteId : null

class ObserverModel {
  ObserverModel({
      num? deviceId, 
      String? deviceName, 
      String? deviceSN, 
      String? showName, 
      String? selectName, 
      String? paramName, 
      String? paramCode, 
      bool? flag,
      dynamic type, 
      dynamic subType, 
      dynamic siteId,}){
    _deviceId = deviceId;
    _deviceName = deviceName;
    _deviceSN = deviceSN;
    _showName = showName;
    _selectName = selectName;
    _paramName = paramName;
    _paramCode = paramCode;
    _flag = flag;
    _type = type;
    _subType = subType;
    _siteId = siteId;
}

  ObserverModel.fromJson(dynamic json) {
    _deviceId = json['deviceId'];
    _deviceName = json['deviceName'];
    _deviceSN = json['deviceSN'];
    _showName = json['showName'];
    _selectName = json['selectName'];
    _paramName = json['paramName'];
    _paramCode = json['paramCode'];
    _flag = json['flag'];
    _type = json['type'];
    _subType = json['subType'];
    _siteId = json['siteId'];
  }
  num? _deviceId;
  String? _deviceName;
  String? _deviceSN;
  String? _showName;
  String? _selectName;
  String? _paramName;
  String? _paramCode;
  bool? _flag;
  dynamic _type;
  dynamic _subType;
  dynamic _siteId;
ObserverModel copyWith({  num? deviceId,
  String? deviceName,
  String? deviceSN,
  String? showName,
  String? selectName,
  String? paramName,
  String? paramCode,
  dynamic flag,
  dynamic type,
  dynamic subType,
  dynamic siteId,
}) => ObserverModel(  deviceId: deviceId ?? _deviceId,
  deviceName: deviceName ?? _deviceName,
  deviceSN: deviceSN ?? _deviceSN,
  showName: showName ?? _showName,
  selectName: selectName ?? _selectName,
  paramName: paramName ?? _paramName,
  paramCode: paramCode ?? _paramCode,
  flag: flag ?? _flag,
  type: type ?? _type,
  subType: subType ?? _subType,
  siteId: siteId ?? _siteId,
);
  num? get deviceId => _deviceId;
  String? get deviceName => _deviceName;
  String? get deviceSN => _deviceSN;
  String? get showName => _showName;
  String? get selectName => _selectName;
  String? get paramName => _paramName;
  String? get paramCode => _paramCode;
  dynamic get flag => _flag;
  dynamic get type => _type;
  dynamic get subType => _subType;
  dynamic get siteId => _siteId;
  set flag(value) {
    _flag = value;
  }
  Map<String, dynamic> toJson() {
    final map = <String, dynamic>{};
    map['deviceId'] = _deviceId;
    map['deviceName'] = _deviceName;
    map['deviceSN'] = _deviceSN;
    map['showName'] = _showName;
    map['selectName'] = _selectName;
    map['paramName'] = _paramName;
    map['paramCode'] = _paramCode;
    map['flag'] = _flag;
    map['type'] = _type;
    map['subType'] = _subType;
    map['siteId'] = _siteId;
    return map;
  }

}